package com.li.hibernate.pojo;

/**
 * AbstractShCarId entity provides the base persistence definition of the
 * ShCarId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractShCarId implements java.io.Serializable {

	// Fields

	private Integer carid;
	private Integer caruserid;

	// Constructors

	/** default constructor */
	public AbstractShCarId() {
	}

	/** full constructor */
	public AbstractShCarId(Integer carid, Integer caruserid) {
		this.carid = carid;
		this.caruserid = caruserid;
	}

	// Property accessors

	public Integer getCarid() {
		return this.carid;
	}

	public void setCarid(Integer carid) {
		this.carid = carid;
	}

	public Integer getCaruserid() {
		return this.caruserid;
	}

	public void setCaruserid(Integer caruserid) {
		this.caruserid = caruserid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractShCarId))
			return false;
		AbstractShCarId castOther = (AbstractShCarId) other;

		return ((this.getCarid() == castOther.getCarid()) || (this.getCarid() != null
				&& castOther.getCarid() != null && this.getCarid().equals(
				castOther.getCarid())))
				&& ((this.getCaruserid() == castOther.getCaruserid()) || (this
						.getCaruserid() != null
						&& castOther.getCaruserid() != null && this
						.getCaruserid().equals(castOther.getCaruserid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getCarid() == null ? 0 : this.getCarid().hashCode());
		result = 37 * result
				+ (getCaruserid() == null ? 0 : this.getCaruserid().hashCode());
		return result;
	}

}